package com.kc.business.service.impl;

import com.kc.business.domain.BizPersonalConsignmentGoods;
import com.kc.business.mapper.BizPersonalConsignmentGoodsMapper;
import com.kc.business.service.IBizPersonalConsignmentGoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/10/23
 */
@Service
public class BizPersonalConsignmentGoodsServiceImpl implements IBizPersonalConsignmentGoodsService {
    @Resource
    BizPersonalConsignmentGoodsMapper goodsMapper;

    /**
     * 查询商品列表
     *
     * @param goods
     * @return
     */
    @Override
    public List<BizPersonalConsignmentGoods> getList(BizPersonalConsignmentGoods goods) {
        return goodsMapper.select(goods);
    }

    /**
     * 修改商品
     *
     * @param goods
     * @return
     */
    @Override
    public int edit(BizPersonalConsignmentGoods goods) {
        return goodsMapper.updateByPrimaryKeySelective(goods);
    }
}
